@extends('home.parent')
<?php $title = $_ENV['SYSTEM_NAME'];?>
<?php $power = isset(session('user')[0]['power']) ? session('user')[0]['power'] : 0; ?>
@section('title',$title.'管理系统')
@section('head_js')
@endsection
@section('head_css')
<style>
.users-list img{
	min-width:80px;
	min-height:80px;
	max-width:80px;
	max-height:80px;
}
.skillstore>li img{
	border-radius:0%;
}
.content-wrapper{
	margin-top:50px;
	padding-top:10px;
	background:#f2f2f2;
}
div.pName{
	padding:5px;
	margin-left:10px;
	border-left:5px solid #009688;
}
div.pName font{
	color:#009688;
}
div.content-personal>div{
	padding:10px;
}
div.content-personal>div:last-child{
	clear:both;
}
div.plate{
	background:#fff;
}
div.plate div.div-header{
	padding:10px;
	border-bottom:1px solid #f2f2f2;
}
div.plate div.div-content div.div-table{
	margin:10px;
	padding-bottom:10px;
	overflow:auto;
}
div.plate div.div-content table{
	color:#777;
}
div.plate div.div-content table tr td{
	padding:20px 10px;
	border:1px solid #f8f8f8;
	white-space:nowrap;
}
div.plate div.div-content table thead tr{
	background:#f0f0f0;
}
div.plate div.div-content table tr:hover{
	background:#f3f3f3;
}
div.plate div.div-content table{
	width:100%;
}
div.plate div.div-content div:last-child{
	clear:both;
}
div.plate div.div-content span{
	padding:0;
}
div.plate div.div-content span a{
	display:block;
	color:#888;
	padding:5px 20px;
	margin:10px;
	background:#f8f8f8;
}
div.plate div.div-content span a:hover{
	background:#f3f3f3;
}
div.plate div.div-content span label{
	font-size:22px;color:#009688;
}
</style>
@endsection
@section('content')
<!--<div class="content-wrapper" style="background-image:url('/images/body.png');background-size:cover;background-repeat:no-repeat;background-position:center;">-->
<div class="content-wrapper">
	<div class="pName">
		<h4>欢迎 <font>{{ session('user')[0]['admin_name'] }}</font> 登录云快视管理员端</h4>
	</div>
	<div class="content-personal">
		<div class="col-md-12">
			<div class="plate">
				<div class="div-header">
					综合信息
				</div>
				<div class="div-content">
					<span class="col-lg-3 col-md-4 col-sm-6">
						<a>
						<h5>合伙人</h5>
						<label>{{ isset($data['countPt']) ? $data['countPt'] : 0 }} 个</label>
						</a>
					</span>
					<span class="col-lg-3 col-md-4 col-sm-6">
						<a>
						<h5>会员</h5>
						<label>{{ isset($data['countPu']) ? $data['countPu'] : 0 }} 个</label>
						</a>
					</span>
					<span class="col-lg-3 col-md-4 col-sm-6">
						<a>
						<h5>用户</h5>
						<label>{{ isset($data['countUser']) ? $data['countUser'] : 0 }} 个</label>
						</a>
					</span>
					<span class="col-lg-3 col-md-4 col-sm-6">
						<a>
						<h5>达人</h5>
						<label>{{ isset($data['countTal']) ? $data['countTal'] : 0 }} 个</label>
						</a>
					</span>
					<span class="col-lg-3 col-md-4 col-sm-6">
						<a>
						<h5>待审核达人</h5>
						<label>{{ isset($data['countTalD']) ? $data['countTalD'] : 0 }} 个</label>
						</a>
					</span>
					<span class="col-lg-3 col-md-4 col-sm-6">
						<a>
						<h5>最新搜索视频</h5>
						<label>{{ isset($data['countVideoDay']) ? $data['countVideoDay'] : 0 }} 条</label>
						</a>
					</span>
					<span class="col-lg-3 col-md-4 col-sm-6">
						<a>
						<h5>最新搜索评论</h5>
						<label>{{ isset($data['countCommentDay']) ? $data['countCommentDay'] : 0 }} 条</label>
						</a>
					</span>
					<span class="col-lg-3 col-md-4 col-sm-6">
						<a>
						<h5>最新作品评论</h5>
						<label>{{ isset($data['countInfoCommentDay']) ? $data['countInfoCommentDay'] : 0 }} 条</label>
						</a>
					</span>
					<span class="col-lg-3 col-md-4 col-sm-6">
						<a>
						<h5>主页监控</h5>
						<label>{{ isset($data['countUserInfo']) ? $data['countUserInfo'] : 0 }} 个</label>
						</a>
					</span>
					<span class="col-lg-3 col-md-4 col-sm-6">
						<a>
						<h5>作品监控</h5>
						<label>{{ isset($data['countUserInfoTwo']) ? $data['countUserInfoTwo'] : 0 }} 个</label>
						</a>
					</span>
					<span class="col-lg-3 col-md-4 col-sm-6">
						<a>
						<h5>待审核视频</h5>
						<label>{{ isset($data['countStayVideo']) ? $data['countStayVideo'] : 0 }} 个</label>
						</a>
					</span>
					<span class="col-lg-3 col-md-4 col-sm-6">
						<a>
						<h5>已发布视频</h5>
						<label>{{ isset($data['countTooVideo']) ? $data['countTooVideo'] : 0 }} 个</label>
						</a>
					</span>
					<span class="col-lg-3 col-md-4 col-sm-6">
						<a>
						<h5>开户总额</h5>
						<label>{{ isset($data['countPrice']) ? number_format($data['countPrice'],2) : 0 }} 元</label>
						</a>
					</span>
					<span class="col-lg-3 col-md-4 col-sm-6">
						<a>
						<h5>会员套餐总额</h5>
						<label>{{ isset($data['countPriceMeal']) ? number_format($data['countPriceMeal'],2) : 0 }} 元</label>
						</a>
					</span>
					<div></div>
				</div>
			</div>
		</div>
		<div class="col-md-12">
			<div class="plate">
				<div class="div-header">
					最新订单
				</div>
				<div class="div-content">
					<div class="div-table">
						<table>
							<thead>
								<tr><td>订单号</td><td>账号类型(用户名)</td><td>订单类型</td><td>支付方式</td><td>订单金额</td><td>比例</td><td>标题</td><td>时间</td></tr>
							</thead>
							<tbody>
								<?
								if(isset($data['orderList']) && $data['orderList']){
									foreach($data['orderList'] as $k=>$v){?>
										<tr>
											<td>{{$v['order_no']}}</td>
											<td>{{$v['partner_type']}}({{$v['user_name']}})</td>
											<td>{{$v['type']}}</td>
											<td>{{$v['pay_type']}}</td>
											<td>{{$v['price']}} 元</td>
											<td>{{$v['discount']}}</td>
											<td style="white-space:normal;">{{$v['title']}}</td>
											<td>{{$v['create_time']}}</td>
										</tr>
									<?}
								}else{?>
									<tr><td colspan="8">暂无数据</td></tr>
								<?}
								?>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
		<div></div>
	</div>
</div>
@endsection
@section('foot_js')
@endsection